package com.hqyj.bigdata_project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("toptenvideoinfo")
public class TopTenVideoInfo extends BaseEntity{
    @Id
    //auto_increment;
    @GeneratedValue (strategy = GenerationType.IDENTITY)
    @TableId (type = IdType.AUTO)
    private Integer id;
    private String videoId; //视频编号
    private Long views; //播放的次数

}
